import request from '@/utils/request'

// 用户管理
export function getSalesmanList(data: any) {
  return request({
    url: '/supplier/salesperson_commission/list',
    method: 'get',
    params: data,
  })
}

//结算
export function settlement(data: any) {
  return request({
    url: '/supplier/salesperson_commission/edit',
    method: 'post',
    data,
  })
}
//批量结算
export function batchSettlement(data: any) {
  return request({
    url: '/supplier/salesperson_commission/edit_status_all',
    method: 'post',
    data,
  })
}

// 结算状态回退
export function settlementBack(data: any) {
  return request({
    url: '/supplier/salesperson_commission/back',
    method: 'post',
    data,
  })
}